% target function
% m is a matrix which is stored in binary array
function [objvalue] = cal_objvalue(m, max_code, max_x)
[rows cols] = size(m);
for i = 1:rows
    x = convert2decimal(m(i,:));
    x = x/max_code*max_x;
    value = x + 5*cos(3*x) + 6*sin(4*x);
    objvalue(i,1) = value;
end